package com.ulife.permission.dao;

import java.sql.SQLException;
import java.util.List;

import com.ulife.permission.dao.dataobject.RoleDO;

public interface RoleDao {

	RoleDO getRoleById(long roleId) throws SQLException;

	int addRole(RoleDO role) throws SQLException;

	List<RoleDO> getAllRole() throws SQLException;

	int delUser(long roleId) throws SQLException;

	int updateUser(RoleDO role) throws SQLException;

	List<RoleDO> getAllAvailableRoles() throws SQLException;
	
}
